function OnScriptLoad() {
	Client.Core.ScreenFadeIn(0, Color(0, 0, 0), false);

	Client.Camera.FOV = 1;

	Client.Core.Announce("%Mod.Poetry[-1]%", 4, 2);
	Client.Timer.Create(() => {
		Client.Core.ScreenFadeOut(1, Color(0, 0, 0), false);

		//Init Scene
		LoadGameMenu();
	}, 1);
}

function LoadGameMenu() {
	Client.Audio.PlayMusic(72, true);
	Client.Core.SetGameMenuStyle(1);

	Client.Camera.FOVSpeed = 0.3;
	Client.Camera.FOV = 70;

	Client.Camera.StartLookAt(Vector(-28, 8, 122), Vector(0, 0, 0), 3);

	Client.Camera.Vignette = 1;
	Client.Camera.SetCinematicBorder(true);

	Client.Core.UnbindAllGameMenuButton();
	Client.Core.BindGameMenuButton("%Mod.GameMenu.CreateHost%", "%Mod.GameMenu.CreateHost[1]%", () => {
		let view = {
			Cover: 10000,
			Title: "<img src='sesprite://100' width='48' height='48'/> 建立测试地图",
			Info: "Engine Maps",
			Width: 520,
			Align: 1,
			Layout: 1,
			Hotkey: true,
			Background: 1,
			Items: []
		};

		let maps = GetMapNames();
		for (let i = 0; i < maps.GetCount(); i++) {
			let mapName = maps.Get(i);

			view.Items.push({
				Text: i + "." + mapName,
				OnClick: () => {
					CreateHost(mapName, "Game", 0);
				}
			});
		}

		Client.NativeMenu.Create(view);
	});

	Client.Core.BindGameMenuButton("@space");
	Client.Core.BindGameMenuButton("@default");
}